package com.soyorin.shop.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.Instant;
import java.time.LocalTime;

@Data
@TableName("shop")
public class Shop {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Instant createTime;
    private Instant updateTime;
    @TableField("rela_user_id")
    private Long relaUserId;
    private String name;
    private String image;
    private String description;
    @TableField("logo_address")
    private String logoAddress;
    private String address;
    @TableField("position_x")
    private Double positionX;
    @TableField("position_y")
    private Double positionY;
    private String phone;
    @TableField("start_time")
    private LocalTime startTime;
    @TableField("end_time")
    private LocalTime endTime;
    @TableField("min_order_amount")
    private Integer minOrderAmount;
    @TableField("delivery_fee")
    private Integer deliveryFee;
    @TableField("av_rating")
    private Double avRating;
    @TableField("av_amount")
    private Integer avAmount;
    @TableField("monthly_order_count")
    private Integer monthlyOrderCount;
}